﻿using System;

namespace Quail
{
    /// <summary>
    /// An exception for the WebBrowser object
    /// </summary>
    public class WebBrowserException : LogStatusException
    {
        /// <summary>
        /// Initializes a new instance of the WebBrowserException class.
        /// </summary>
        /// <param name="browser">The browser</param>
        /// <param name="status">the status to log</param>
        /// <param name="message">The message</param>
        public WebBrowserException(IWebBrowser browser, LogStatus status, string message)
            : base(status, message)
        {
            Browser = browser;
        }

        /// <summary>
        /// Gets the browser for the exception
        /// </summary>
        public IWebBrowser Browser { get; private set; }
    }
}
